package com.zg.third.qcc.enm;

public enum ZtQccUrlEnum {

    ENTERPRISE("410", "/orchestration/api/restStation/run", "POST"),
    ;

    private final String apiCode;
    private final String url;
    private final String requestType;

    ZtQccUrlEnum(String apiCode, String url, String requestType) {
        this.apiCode = apiCode;
        this.url = url;
        this.requestType = requestType;
    }

    public String getApiCode() {
        return apiCode;
    }

    public String getUrl() {
        return url;
    }

    public String getRequestType() {
        return requestType;
    }

    public static ZtQccUrlEnum getByApiCode(String apiCode) {
        for (ZtQccUrlEnum value : ZtQccUrlEnum.values()) {
            if (value.getApiCode().equals(apiCode)) {
                return value;
            }
        }
        return null;
    }
}
